local unitDefs = {

C_FACTORY = {
  name                = "Vehicle Factory",
  description         = "Produces Vehicles",
  
  objectName          = "c_factory.s3o",
  script              = "c_factory.cob",  
  buildPic            = "c_factory.png",
  iconType            = "building",  
  category            = [[LAND BUILDING WEAPON CTRL_F]],  --LEVEL1 NOTAIR
  TEDClass            = "PLANT", 
  
  -- Cost
  buildCostMetal      = 2000,  
  buildCostEnergy     = 0,
  buildTime           = 20000,

  -- Resources
  metalMake           = 100, --5,  
  metalStorage        = 1000,
	
  -- Construction
  builder             = true,
  workerTime          = 2000, --200,  
  buildAngle          = 2048, --?
  buildoptions = {
    "c_lighttank",
    "c_heavytank",
    "c_mammothtank",
    "c_experimentaltank",    
    "c_artillery",
    "c_heavymortar",
    "c_aavehicle",
    "c_heavyaacannon",
    "c_extractorcon",
    "c_cannoncon",	
    "c_mediumcon",
    "c_heavycon",
    "c_com",
    "c_assaulthelicopter",
    "c_escortship",
    "c_destroyer",
    "c_aacruiser",
    "c_cruiser",
    "c_monitor",
    "c_battlecruiser",
    "c_battleship",
    "weapons_platform",
    "armfig2",
    "armmh",
  },	
	
  -- Damage
  maxDamage           = 10000,
  idleAutoHeal        = 5,
  idleTime            = 900,
  
  -- Movement and Pathfinding
  footprintX          = 10,
  footprintZ          = 7,
  yardMap             = [[ooyyyoooooooyyyooooooocccooooooocccooooooocccoooooooyyyoooooooyyyooooo]],  
  -- ooyyyooooo
  -- ooyyyooooo
  -- oocccooooo
  -- oocccooooo
  -- oocccooooo
  -- ooyyyooooo
  -- ooyyyooooo
  maxVelocity         = 0,
  maxSlope            = 15,
  maxWaterDepth       = 0,
 
  -- Ground Decal
  useBuildingGroundDecal        = true, 
  buildingGroundDecalType       = "asphalt512c.dds",  
  buildingGroundDecalSizeX      = 8,
  buildingGroundDecalSizeY      = 8,
  buildingGroundDecalDecaySpeed = 0.01,  

  -- Abilities
  canMove             = true,  
  canAttack           = true,
  canGuard            = true,
  canPatrol           = true,
  activateWhenBuilt   = true,

  -- Detection  
  sightDistance       = 600,
  radarDistance       = 1400,  
  seismicSignature    = 0,

  -- Weapons
  explodeAs           = "UNIT_EXPLOSION_LARGE1",  
  selfDestructAs      = "UNIT_SELFD_LARGE1", 
  --noChaseCategory     = [[BUILDING TANK SHIP SUB PLANE HELICOPTER]],  

  weapons = {
    [1] = "C_CANNON_AA_2BARRELS",    
    [2] = "C_CANNON_AUTOCANNON_2BARRELS",
  },
  
  sfxtypes = {},  

  customParams = {
    wreckModels = { "c_factory_dead.3do", "c_factory_dead.3do" },
    heapModels = { "3x3d.3do" },
    
    constructionWireframe = 8.0,
    scaffoldingBoxes = {
      { -10, 0, -10, 10, 20, 10 },
    },    

	  soundCategory = "BUILDING1",
  
	  armorThickness = 50,
	
	  lightDamageChance = 0.2,	
	  mediumDamageChance = 0.6,
	  heavyDamageChance = 0.2,
  },
},
}

return lowerkeys(unitDefs)